package cn.demomaster.quickdb_sample.model;

import cn.demomaster.quickdb_annotations.Column;
import cn.demomaster.quickdb_annotations.Table;

/**
 *
 * 数据库表Member对应实例类bean
 */
@Table
public class Member {

    @Column(primaryKey = true, autoIncrement = true)
    private int id;

    @Column(comment = "姓名")
    private String name;
    @Column(name = "age",comment = "年龄")
    private int age;
    @Column(name = "sex",comment = "性别")
    private int sex;
    @Column(name = "description",comment = "描述")
    private String description;

    @Override
    public String toString() {
        return "Member{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", sex=" + sex +
                ", description='" + description + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}